﻿using DA.Model.Configure;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DA.Core.Common
{
    public class Configurations
    {
        private Appsetting? appsetting;

        public Appsetting? Appsetting
        {
            get { return appsetting; }
            set { appsetting = value; }
        }

        public Configurations()
        {
            appsetting = JsonConvert.DeserializeObject<Appsetting>(File.ReadAllText(@$"{AppDomain.CurrentDomain.BaseDirectory}\Common\appsetting.json"));
        }
    }
}
